package org.chatboleh;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JPanel;

import org.apache.log4j.Logger;

	public class GridPanel extends JPanel {
		private static final long serialVersionUID = 1L;
		private static Logger logger = Logger.getLogger(GridPanel.class);
		
		public void paint(Graphics g) {
			super.paint(g);
			int w = getSize().width;
			int h = getSize().height;
			logger.debug("w: " + w + " h: " + h);
			g.setColor(Color.red);
			g.drawRect(0, 0, w - 1, h - 1);
			g.drawLine(w / 2, 0, w / 2, h);
			g.drawLine(0, h / 2, w, h / 2);
		}
	}
